<template>
  <div class="my-select">
    <el-select v-model="modelValue" :placeholder="ph" :style=" 'width:' + width +'px' ">
      <el-option
        v-for="item in items"
        :key="item.value"
        :label="item.label"
        :value="item.value"
      >
      </el-option>
    </el-select>
  </div>
</template>

<script>
export default {
  props: ["ph", "items","width"],
  data() {
    return {
      modelValue: "",
    };
  },
  watch: {
    modelValue() {
      this.$emit("value", this.modelValue);
    },
  },
};
</script>

<style>
.my-select .el-range-input{
    background-color: #f2f2f2;
}

.my-select .el-input__inner {
  background-color: #f2f2f2;
  border: none;
}

.my-select input::-webkit-input-placeholder{
  color: black;
  font-family: PingFangSC-Regular, "PingFang SC", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: left;
}

.my-select:hover .el-input__inner {
  background-color: #ffffff;
}

.my-select:hover .el-range-input {
  background-color: #ffffff;
}
</style>